/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Counselor Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20276 (C-0-T19465-S20275-S20276-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getCounselorProviderCodes()
 * @model extendedMetaData="name='CounselorProviderCodes'"
 * @generated
 */
public enum CounselorProviderCodes implements Enumerator {
	/**
	 * The '<em><b>101Y00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_101Y00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_101Y00000X(0, "_101Y00000X", "101Y00000X"),

	/**
	 * The '<em><b>101YA0400X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_101YA0400X_VALUE
	 * @generated
	 * @ordered
	 */
	_101YA0400X(1, "_101YA0400X", "101YA0400X"),

	/**
	 * The '<em><b>101YM0800X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_101YM0800X_VALUE
	 * @generated
	 * @ordered
	 */
	_101YM0800X(2, "_101YM0800X", "101YM0800X"),

	/**
	 * The '<em><b>101YP1600X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_101YP1600X_VALUE
	 * @generated
	 * @ordered
	 */
	_101YP1600X(3, "_101YP1600X", "101YP1600X"),

	/**
	 * The '<em><b>101YP2500X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_101YP2500X_VALUE
	 * @generated
	 * @ordered
	 */
	_101YP2500X(4, "_101YP2500X", "101YP2500X"),

	/**
	 * The '<em><b>101YS0200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_101YS0200X_VALUE
	 * @generated
	 * @ordered
	 */
	_101YS0200X(5, "_101YS0200X", "101YS0200X");

	/**
	 * The '<em><b>101Y00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>101Y00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_101Y00000X
	 * @model literal="101Y00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _101Y00000X_VALUE = 0;

	/**
	 * The '<em><b>101YA0400X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>101YA0400X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_101YA0400X
	 * @model literal="101YA0400X"
	 * @generated
	 * @ordered
	 */
	public static final int _101YA0400X_VALUE = 1;

	/**
	 * The '<em><b>101YM0800X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>101YM0800X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_101YM0800X
	 * @model literal="101YM0800X"
	 * @generated
	 * @ordered
	 */
	public static final int _101YM0800X_VALUE = 2;

	/**
	 * The '<em><b>101YP1600X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>101YP1600X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_101YP1600X
	 * @model literal="101YP1600X"
	 * @generated
	 * @ordered
	 */
	public static final int _101YP1600X_VALUE = 3;

	/**
	 * The '<em><b>101YP2500X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>101YP2500X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_101YP2500X
	 * @model literal="101YP2500X"
	 * @generated
	 * @ordered
	 */
	public static final int _101YP2500X_VALUE = 4;

	/**
	 * The '<em><b>101YS0200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>101YS0200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_101YS0200X
	 * @model literal="101YS0200X"
	 * @generated
	 * @ordered
	 */
	public static final int _101YS0200X_VALUE = 5;

	/**
	 * An array of all the '<em><b>Counselor Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final CounselorProviderCodes[] VALUES_ARRAY =
		new CounselorProviderCodes[] {
			_101Y00000X,
			_101YA0400X,
			_101YM0800X,
			_101YP1600X,
			_101YP2500X,
			_101YS0200X,
		};

	/**
	 * A public read-only list of all the '<em><b>Counselor Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<CounselorProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Counselor Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static CounselorProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			CounselorProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Counselor Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static CounselorProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			CounselorProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Counselor Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static CounselorProviderCodes get(int value) {
		switch (value) {
			case _101Y00000X_VALUE: return _101Y00000X;
			case _101YA0400X_VALUE: return _101YA0400X;
			case _101YM0800X_VALUE: return _101YM0800X;
			case _101YP1600X_VALUE: return _101YP1600X;
			case _101YP2500X_VALUE: return _101YP2500X;
			case _101YS0200X_VALUE: return _101YS0200X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private CounselorProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //CounselorProviderCodes
